package com.city.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @deprecation 错误控制器
 * @email leichuqiao@126.com
 * @author 雷楚桥
 * @date 2018-07-07 11:20
 */
@Controller
@RequestMapping("/error")
public class ErrorController {

    /**
     * @deprecation 404错误
     * @author 雷楚桥
     * @date 2018-07-07 11:20
     */
    @RequestMapping("/404")
    public String page_404(Map<String,Object> map){
        map.put("name","404");
        return "/error/default";
    }
    
    /**
     * @deprecation 405错误
     * @author 雷楚桥
     * @date 2018-08-31 17:21
     */
    @RequestMapping("/405")
    public String page_405(Map<String,Object> map){
        map.put("name","405");
        return "/error/default";
    }

    /**
     * @deprecation 500错误
     * @author 雷楚桥
     * @date 2018-08-31 17:21
     */
    @RequestMapping("/500")
    public String page_500(Map<String,Object> map){
        map.put("name","500");
        return "/error/default";
    }

}
